package net.borderwars.map;

import java.util.ArrayList;

/**
 * User: ehubbard
 * Date: Feb 16, 2007
 * Time: 2:38:43 PM
 */
public class RegionNode {
    int x1, x2, y1, y2;
    RegionNode leftOf[];
    RegionNode rightOf[];
    RegionNode above[];
    RegionNode below[];

    ArrayList objects = new ArrayList (5);

    public RegionNode (final int x1, final int x2, final int y1, final int y2) {
        this.x1 = x1;
        this.x2 = x2;
        this.y1 = y1;
        this.y2 = y2;
    }

    public void addObject (Object o) {
        objects.add (o);
    }

    public int getSize () {
        return (objects.size ());
    }
}
